﻿@{
    ViewBag.Title = "Inbox";
}

<div class="page-content">
    <div class="page-header">
        <h1>Inbox
								<small>
                                    <i class="icon-double-angle-right"></i>
                                    Mailbox with some customizations as described in docs
                                </small>
        </h1>
    </div>
    <!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->

            <div class="row">
                <div class="col-xs-12">
                    <div class="tabbable">
                        <ul id="inbox-tabs" class="inbox-tabs nav nav-tabs padding-16 tab-size-bigger tab-space-1">
                            <li class="li-new-mail pull-right">
                                <a data-toggle="tab" href="#write" data-target="write" class="btn-new-mail">
                                    <span class="btn bt1n-small btn-purple no-border">
                                        <i class=" icon-envelope bigger-130"></i>
                                        <span class="bigger-110">Write Mail</span>
                                    </span>
                                </a>
                            </li>
                            <!-- ./li-new-mail -->

                            <li class="active">
                                <a data-toggle="tab" href="#inbox" data-target="inbox">
                                    <i class="blue icon-inbox bigger-130"></i>
                                    <span class="bigger-110">Inbox</span>
                                </a>
                            </li>

                            <li>
                                <a data-toggle="tab" href="#sent" data-target="sent">
                                    <i class="orange icon-location-arrow bigger-130 "></i>
                                    <span class="bigger-110">Sent</span>
                                </a>
                            </li>

                            <li>
                                <a data-toggle="tab" href="#draft" data-target="draft">
                                    <i class="green icon-pencil bigger-130"></i>
                                    <span class="bigger-110">Draft</span>
                                </a>
                            </li>

                            <li class="dropdown">
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                    <i class="pink icon-tags bigger-130"></i>

                                    <span class="bigger-110">Tags
															<i class="icon-caret-down"></i>
                                    </span>
                                </a>

                                <ul class="dropdown-menu dropdown-light-blue dropdown-125">
                                    <li>
                                        <a data-toggle="tab" href="#tag-1" data-target="tag-1">
                                            <span class="mail-tag badge badge-pink"></span>
                                            <span class="pink">Tag#1</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a data-toggle="tab" href="#tag-family" data-target="tag-family">
                                            <span class="mail-tag badge badge-success"></span>
                                            <span class="green">Family</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a data-toggle="tab" href="#tag-friends" data-target="tag-friends">
                                            <span class="mail-tag badge badge-info"></span>
                                            <span class="blue">Friends</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a data-toggle="tab" href="#tag-work" data-target="tag-work">
                                            <span class="mail-tag badge badge-grey"></span>
                                            <span class="grey">Work</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <!-- /.dropdown -->
                        </ul>

                        <div class="tab-content no-border no-padding">
                            <div class="tab-pane in active">
                                <div class="message-container">
                                    <div id="id-message-list-navbar" class="message-navbar align-center clearfix">
                                        <div class="message-bar">
                                            <div class="message-infobar" id="id-message-infobar">
                                                <span class="blue bigger-150">Inbox</span>
                                                <span class="grey bigger-110">(2 unread messages)</span>
                                            </div>

                                            <div class="message-toolbar hide">
                                                <div class="inline position-relative align-left">
                                                    <a href="#" class="btn-message btn btn-xs dropdown-toggle" data-toggle="dropdown">
                                                        <span class="bigger-110">Action</span>

                                                        <i class="icon-caret-down icon-on-right"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-lighter dropdown-caret dropdown-125">
                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-mail-reply blue"></i>
                                                                &nbsp; Reply
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-mail-forward green"></i>
                                                                &nbsp; Forward
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-folder-open orange"></i>
                                                                &nbsp; Archive
                                                            </a>
                                                        </li>

                                                        <li class="divider"></li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-eye-open blue"></i>
                                                                &nbsp; Mark as read
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-eye-close green"></i>
                                                                &nbsp; Mark unread
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-flag-alt red"></i>
                                                                &nbsp; Flag
                                                            </a>
                                                        </li>

                                                        <li class="divider"></li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-trash red bigger-110"></i>
                                                                &nbsp; Delete
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </div>

                                                <div class="inline position-relative align-left">
                                                    <a href="#" class="btn-message btn btn-xs dropdown-toggle" data-toggle="dropdown">
                                                        <i class="icon-folder-close-alt bigger-110"></i>
                                                        <span class="bigger-110">Move to</span>

                                                        <i class="icon-caret-down icon-on-right"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-lighter dropdown-caret dropdown-125">
                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop pink2"></i>
                                                                &nbsp; Tag#1
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop blue"></i>
                                                                &nbsp; Family
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop green"></i>
                                                                &nbsp; Friends
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop grey"></i>
                                                                &nbsp; Work
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </div>

                                                <a href="#" class="btn btn-xs btn-message">
                                                    <i class="icon-trash bigger-125"></i>
                                                    <span class="bigger-110">Delete</span>
                                                </a>
                                            </div>
                                        </div>

                                        <div>
                                            <div class="messagebar-item-left">
                                                <label class="inline middle">
                                                    <input type="checkbox" id="id-toggle-all" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                &nbsp;
																	<div class="inline position-relative">
                                                                        <a href="#" data-toggle="dropdown" class="dropdown-toggle">
                                                                            <i class="icon-caret-down bigger-125 middle"></i>
                                                                        </a>

                                                                        <ul class="dropdown-menu dropdown-lighter dropdown-100">
                                                                            <li>
                                                                                <a id="id-select-message-all" href="#">All</a>
                                                                            </li>

                                                                            <li>
                                                                                <a id="id-select-message-none" href="#">None</a>
                                                                            </li>

                                                                            <li class="divider"></li>

                                                                            <li>
                                                                                <a id="id-select-message-unread" href="#">Unread</a>
                                                                            </li>

                                                                            <li>
                                                                                <a id="id-select-message-read" href="#">Read</a>
                                                                            </li>
                                                                        </ul>
                                                                    </div>
                                            </div>

                                            <div class="messagebar-item-right">
                                                <div class="inline position-relative">
                                                    <a href="#" data-toggle="dropdown" class="dropdown-toggle">Sort &nbsp;
																			<i class="icon-caret-down bigger-125"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-lighter pull-right dropdown-100">
                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-ok green"></i>
                                                                Date
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-ok invisible"></i>
                                                                From
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-ok invisible"></i>
                                                                Subject
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>

                                            <div class="nav-search minimized">
                                                <form class="form-search">
                                                    <span class="input-icon">
                                                        <input type="text" autocomplete="off" class="input-small nav-search-input" placeholder="Search inbox ..." />
                                                        <i class="icon-search nav-search-icon"></i>
                                                    </span>
                                                </form>
                                            </div>
                                        </div>
                                    </div>

                                    <div id="id-message-item-navbar" class="hide message-navbar align-center clearfix">
                                        <div class="message-bar">
                                            <div class="message-toolbar">
                                                <div class="inline position-relative align-left">
                                                    <a href="#" class="btn-message btn btn-xs dropdown-toggle" data-toggle="dropdown">
                                                        <span class="bigger-110">Action</span>

                                                        <i class="icon-caret-down icon-on-right"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-lighter dropdown-caret dropdown-125">
                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-mail-reply blue"></i>
                                                                &nbsp; Reply
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-mail-forward green"></i>
                                                                &nbsp; Forward
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-folder-open orange"></i>
                                                                &nbsp; Archive
                                                            </a>
                                                        </li>

                                                        <li class="divider"></li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-eye-open blue"></i>
                                                                &nbsp; Mark as read
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-eye-close green"></i>
                                                                &nbsp; Mark unread
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-flag-alt red"></i>
                                                                &nbsp; Flag
                                                            </a>
                                                        </li>

                                                        <li class="divider"></li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-trash red bigger-110"></i>
                                                                &nbsp; Delete
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </div>

                                                <div class="inline position-relative align-left">
                                                    <a href="#" class="btn-message btn btn-xs dropdown-toggle" data-toggle="dropdown">
                                                        <i class="icon-folder-close-alt bigger-110"></i>
                                                        <span class="bigger-110">Move to</span>

                                                        <i class="icon-caret-down icon-on-right"></i>
                                                    </a>

                                                    <ul class="dropdown-menu dropdown-lighter dropdown-caret dropdown-125">
                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop pink2"></i>
                                                                &nbsp; Tag#1
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop blue"></i>
                                                                &nbsp; Family
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop green"></i>
                                                                &nbsp; Friends
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#">
                                                                <i class="icon-stop grey"></i>
                                                                &nbsp; Work
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </div>

                                                <a href="#" class="btn btn-xs btn-message">
                                                    <i class="icon-trash bigger-125"></i>
                                                    <span class="bigger-110">Delete</span>
                                                </a>
                                            </div>
                                        </div>

                                        <div>
                                            <div class="messagebar-item-left">
                                                <a href="#" class="btn-back-message-list">
                                                    <i class="icon-arrow-left blue bigger-110 middle"></i>
                                                    <b class="bigger-110 middle">Back</b>
                                                </a>
                                            </div>

                                            <div class="messagebar-item-right">
                                                <i class="icon-time bigger-110 orange middle"></i>
                                                <span class="time grey">Today, 7:15 pm</span>
                                            </div>
                                        </div>
                                    </div>

                                    <div id="id-message-new-navbar" class="hide message-navbar align-center clearfix">
                                        <div class="message-bar">
                                            <div class="message-toolbar">
                                                <a href="#" class="btn btn-xs btn-message">
                                                    <i class="icon-save bigger-125"></i>
                                                    <span class="bigger-110">Save Draft</span>
                                                </a>

                                                <a href="#" class="btn btn-xs btn-message">
                                                    <i class="icon-remove bigger-125"></i>
                                                    <span class="bigger-110">Discard</span>
                                                </a>
                                            </div>
                                        </div>

                                        <div class="message-item-bar">
                                            <div class="messagebar-item-left">
                                                <a href="#" class="btn-back-message-list no-hover-underline">
                                                    <i class="icon-arrow-left blue bigger-110 middle"></i>
                                                    <b class="middle bigger-110">Back</b>
                                                </a>
                                            </div>

                                            <div class="messagebar-item-right">
                                                <span class="inline btn-send-message">
                                                    <button type="button" class="btn btn-sm btn-primary no-border">
                                                        <span class="bigger-110">Send</span>

                                                        <i class="icon-arrow-right icon-on-right"></i>
                                                    </button>
                                                </span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="message-list-container">
                                        <div class="message-list" id="message-list">
                                            <div class="message-item message-unread">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star orange2"></i>
                                                <span class="sender" title="Alex John Red Smith">Alex John Red Smith </span>
                                                <span class="time">1:33 pm</span>

                                                <span class="summary">
                                                    <span class="text">Click to open this message
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item message-unread">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>

                                                <span class="sender" title="John Doe">John Doe
																		<span class="light-grey">(4)</span>
                                                </span>
                                                <span class="time">7:15 pm</span>

                                                <span class="attachment">
                                                    <i class="icon-paper-clip"></i>
                                                </span>

                                                <span class="summary">
                                                    <span class="badge badge-pink mail-tag"></span>
                                                    <span class="text">Clik to open this message right here
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Philip Markov">Philip Markov </span>
                                                <span class="time">10:15 am</span>

                                                <span class="attachment">
                                                    <i class="icon-paper-clip"></i>
                                                </span>

                                                <span class="summary">
                                                    <span class="message-flags">
                                                        <i class="icon-reply light-grey"></i>
                                                    </span>
                                                    <span class="text">Photo booth beard raw denim letterpress vegan
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star orange2"></i>
                                                <span class="sender" title="Sabrina">Sabrina </span>
                                                <span class="time">Yesterday</span>

                                                <span class="summary">
                                                    <span class="text">Nullam quis risus eget urna mollis ornare
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Philip Markov">Philip Markov </span>
                                                <span class="time">Yesterday</span>

                                                <span class="attachment">
                                                    <i class="icon-paper-clip"></i>
                                                </span>

                                                <span class="summary">
                                                    <span class="badge badge-success mail-tag"></span>
                                                    <span class="text">Vestibulum id ligula porta felis euismod
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Doctor Gomenz">Doctor Gomenz </span>
                                                <span class="time">April 5</span>

                                                <span class="summary">
                                                    <span class="text">Vim te vivendo convenire, summo fuisset
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Robin Hood">Robin Hood </span>
                                                <span class="time">April 4</span>

                                                <span class="summary">
                                                    <span class="message-flags">
                                                        <i class="icon-reply light-grey"></i>
                                                    </span>
                                                    <span class="text">No eos veniam equidem mentitum, his porro
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Google Inc">Google Inc </span>
                                                <span class="time">April 3</span>

                                                <span class="summary">
                                                    <span class="badge badge-grey mail-tag"></span>
                                                    <span class="text">Convallis facilisis euismod urna sodales
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Shrek">Shrek </span>
                                                <span class="time">March 28</span>

                                                <span class="attachment">
                                                    <i class="icon-paper-clip"></i>
                                                </span>

                                                <span class="summary">
                                                    <span class="message-flags">
                                                        <i class="icon-flag icon-flip-horizontal light-grey"></i>
                                                    </span>
                                                    <span class="text">Photo booth beard raw denim letterpress vegan messenger
                                                    </span>
                                                </span>
                                            </div>

                                            <div class="message-item">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl"></span>
                                                </label>

                                                <i class="message-star icon-star-empty light-grey"></i>
                                                <span class="sender" title="Yahoo!">Yahoo! </span>
                                                <span class="time">March 27</span>

                                                <span class="summary">
                                                    <span class="message-flags">
                                                        <i class="icon-mail-forward light-grey"></i>
                                                    </span>
                                                    <span class="text">Tofu biodiesel williamsburg marfa, four loko mcsweeney
                                                    </span>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- /.message-list-container -->

                                    <div class="message-footer clearfix">
                                        <div class="pull-left">151 messages total </div>

                                        <div class="pull-right">
                                            <div class="inline middle">page 1 of 16 </div>

                                            &nbsp; &nbsp;
																<ul class="pagination middle">
                                                                    <li class="disabled">
                                                                        <span>
                                                                            <i class="icon-step-backward middle"></i>
                                                                        </span>
                                                                    </li>

                                                                    <li class="disabled">
                                                                        <span>
                                                                            <i class="icon-caret-left bigger-140 middle"></i>
                                                                        </span>
                                                                    </li>

                                                                    <li>
                                                                        <span>
                                                                            <input value="1" maxlength="3" type="text" />
                                                                        </span>
                                                                    </li>

                                                                    <li>
                                                                        <a href="#">
                                                                            <i class="icon-caret-right bigger-140 middle"></i>
                                                                        </a>
                                                                    </li>

                                                                    <li>
                                                                        <a href="#">
                                                                            <i class="icon-step-forward middle"></i>
                                                                        </a>
                                                                    </li>
                                                                </ul>
                                        </div>
                                    </div>

                                    <div class="hide message-footer message-footer-style2 clearfix">
                                        <div class="pull-left">simpler footer </div>

                                        <div class="pull-right">
                                            <div class="inline middle">message 1 of 151 </div>

                                            &nbsp; &nbsp;
																<ul class="pagination middle">
                                                                    <li class="disabled">
                                                                        <span>
                                                                            <i class="icon-angle-left bigger-150"></i>
                                                                        </span>
                                                                    </li>

                                                                    <li>
                                                                        <a href="#">
                                                                            <i class="icon-angle-right bigger-150"></i>
                                                                        </a>
                                                                    </li>
                                                                </ul>
                                        </div>
                                    </div>
                                </div>
                                <!-- /.message-container -->
                            </div>
                            <!-- /.tab-pane -->
                        </div>
                        <!-- /.tab-content -->
                    </div>
                    <!-- /.tabbable -->
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->

            <form id="id-message-form" class="hide form-horizontal message-form  col-xs-12">
                <div class="">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-recipient">Recipient:</label>

                        <div class="col-sm-9">
                            <span class="input-icon">
                                <input type="email" name="recipient" id="form-field-recipient" data-value="alex@doe.com" value="alex@doe.com" placeholder="Recipient(s)" />
                                <i class="icon-user"></i>
                            </span>
                        </div>
                    </div>

                    <div class="hr hr-18 dotted"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="form-field-subject">Subject:</label>

                        <div class="col-sm-6 col-xs-12">
                            <div class="input-icon block col-xs-12 no-padding">
                                <input maxlength="100" type="text" class="col-xs-12" name="subject" id="form-field-subject" placeholder="Subject" />
                                <i class="icon-comment-alt"></i>
                            </div>
                        </div>
                    </div>

                    <div class="hr hr-18 dotted"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">
                            <span class="inline space-24 hidden-480"></span>
                            Message:
                        </label>

                        <div class="col-sm-9">
                            <div class="wysiwyg-editor"></div>
                        </div>
                    </div>

                    <div class="hr hr-18 dotted"></div>

                    <div class="form-group no-margin-bottom">
                        <label class="col-sm-3 control-label no-padding-right">Attachments:</label>

                        <div class="col-sm-9">
                            <div id="form-attachments">
                                <input type="file" name="attachment[]" />
                            </div>
                        </div>
                    </div>

                    <div class="align-right">
                        <button id="id-add-attachment" type="button" class="btn btn-sm btn-danger">
                            <i class="icon-paper-clip bigger-140"></i>
                            Add Attachment
                        </button>
                    </div>

                    <div class="space"></div>
                </div>
            </form>

            <div class="hide message-content" id="id-message-content">
                <div class="message-header clearfix">
                    <div class="pull-left">
                        <span class="blue bigger-125">Clik to open this message </span>

                        <div class="space-4"></div>

                        <i class="icon-star orange2 mark-star"></i>

                        &nbsp;
											<img class="middle" alt="John's Avatar" src="/assets/avatars/avatar.png" width="32" />
                        &nbsp;
											<a href="#" class="sender">John Doe</a>

                        &nbsp;
											<i class="icon-time bigger-110 orange middle"></i>
                        <span class="time">Today, 7:15 pm</span>
                    </div>

                    <div class="action-buttons pull-right">
                        <a href="#">
                            <i class="icon-reply green icon-only bigger-130"></i>
                        </a>

                        <a href="#">
                            <i class="icon-mail-forward blue icon-only bigger-130"></i>
                        </a>

                        <a href="#">
                            <i class="icon-trash red icon-only bigger-130"></i>
                        </a>
                    </div>
                </div>

                <div class="hr hr-double"></div>

                <div class="message-body">
                    <p>
                        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                    </p>

                    <p>
                        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                    </p>

                    <p>
                        Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
                    </p>

                    <p>
                        Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                    </p>

                    <p>
                        Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
                    </p>

                    <p>
                        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
                    </p>
                </div>

                <div class="hr hr-double"></div>

                <div class="message-attachment clearfix">
                    <div class="attachment-title">
                        <span class="blue bolder bigger-110">Attachments</span>
                        &nbsp;
											<span class="grey">(2 files, 4.5 MB)</span>

                        <div class="inline position-relative">
                            <a href="#" data-toggle="dropdown" class="dropdown-toggle">&nbsp;
													<i class="icon-caret-down bigger-125 middle"></i>
                            </a>

                            <ul class="dropdown-menu dropdown-lighter">
                                <li>
                                    <a href="#">Download all as zip</a>
                                </li>

                                <li>
                                    <a href="#">Display in slideshow</a>
                                </li>
                            </ul>
                        </div>
                    </div>

                    &nbsp;
										<ul class="attachment-list pull-left list-unstyled">
                                            <li>
                                                <a href="#" class="attached-file inline">
                                                    <i class="icon-file-alt bigger-110 middle"></i>
                                                    <span class="attached-name middle">Document1.pdf</span>
                                                </a>

                                                <div class="action-buttons inline">
                                                    <a href="#">
                                                        <i class="icon-download-alt bigger-125 blue"></i>
                                                    </a>

                                                    <a href="#">
                                                        <i class="icon-trash bigger-125 red"></i>
                                                    </a>
                                                </div>
                                            </li>

                                            <li>
                                                <a href="#" class="attached-file inline">
                                                    <i class="icon-film bigger-110 middle"></i>
                                                    <span class="attached-name middle">Sample.mp4</span>
                                                </a>

                                                <div class="action-buttons inline">
                                                    <a href="#">
                                                        <i class="icon-download-alt bigger-125 blue"></i>
                                                    </a>

                                                    <a href="#">
                                                        <i class="icon-trash bigger-125 red"></i>
                                                    </a>
                                                </div>
                                            </li>
                                        </ul>

                    <div class="attachment-images pull-right">
                        <div class="vspace-sm-4"></div>

                        <div>
                            <img width="36" alt="image 4" src="/assets/images/gallery/thumb-4.jpg" />
                            <img width="36" alt="image 3" src="/assets/images/gallery/thumb-3.jpg" />
                            <img width="36" alt="image 2" src="/assets/images/gallery/thumb-2.jpg" />
                            <img width="36" alt="image 1" src="/assets/images/gallery/thumb-1.jpg" />
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.message-content -->

            <!-- PAGE CONTENT ENDS -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->

@section cssPagePlugin {
}
@section styles {
}
@section jsPagePlugin {
    <script src="/assets/js/bootstrap-tag.min.js"></script>
    <script src="/assets/js/jquery.hotkeys.min.js"></script>
    <script src="/assets/js/bootstrap-wysiwyg.min.js"></script>
    <script src="/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="/assets/js/jquery.ui.touch-punch.min.js"></script>
    <script src="/assets/js/jquery.slimscroll.min.js"></script>
}
@section scripts {
    <script type="text/javascript">
        jQuery( function ( $ ) {

            //handling tabs and loading/displaying relevant messages and forms
            //not needed if using the alternative view, as described in docs
            var prevTab = 'inbox'
            $( '#inbox-tabs a[data-toggle="tab"]' ).on( 'show.bs.tab', function ( e ) {
                var currentTab = $( e.target ).data( 'target' );
                if ( currentTab == 'write' ) {
                    Inbox.show_form();
                }
                else {
                    if ( prevTab == 'write' )
                        Inbox.show_list();

                    //load and display the relevant messages 
                }
                prevTab = currentTab;
            } )



            //basic initializations
            $( '.message-list .message-item input[type=checkbox]' ).removeAttr( 'checked' );
            $( '.message-list' ).delegate( '.message-item input[type=checkbox]', 'click', function () {
                $( this ).closest( '.message-item' ).toggleClass( 'selected' );
                if ( this.checked ) Inbox.display_bar( 1 );//display action toolbar when a message is selected
                else {
                    Inbox.display_bar( $( '.message-list input[type=checkbox]:checked' ).length );
                    //determine number of selected messages and display/hide action toolbar accordingly
                }
            } );


            //check/uncheck all messages
            $( '#id-toggle-all' ).removeAttr( 'checked' ).on( 'click', function () {
                if ( this.checked ) {
                    Inbox.select_all();
                } else Inbox.select_none();
            } );

            //select all
            $( '#id-select-message-all' ).on( 'click', function ( e ) {
                e.preventDefault();
                Inbox.select_all();
            } );

            //select none
            $( '#id-select-message-none' ).on( 'click', function ( e ) {
                e.preventDefault();
                Inbox.select_none();
            } );

            //select read
            $( '#id-select-message-read' ).on( 'click', function ( e ) {
                e.preventDefault();
                Inbox.select_read();
            } );

            //select unread
            $( '#id-select-message-unread' ).on( 'click', function ( e ) {
                e.preventDefault();
                Inbox.select_unread();
            } );

            /////////

            //display first message in a new area
            $( '.message-list .message-item:eq(0) .text' ).on( 'click', function () {
                //show the loading icon
                $( '.message-container' ).append( '<div class="message-loading-overlay"><i class="icon-spin icon-spinner orange2 bigger-160"></i></div>' );

                $( '.message-inline-open' ).removeClass( 'message-inline-open' ).find( '.message-content' ).remove();

                var message_list = $( this ).closest( '.message-list' );

                //some waiting
                setTimeout( function () {

                    //hide everything that is after .message-list (which is either .message-content or .message-form)
                    message_list.next().addClass( 'hide' );
                    $( '.message-container' ).find( '.message-loading-overlay' ).remove();

                    //close and remove the inline opened message if any!

                    //hide all navbars
                    $( '.message-navbar' ).addClass( 'hide' );
                    //now show the navbar for single message item
                    $( '#id-message-item-navbar' ).removeClass( 'hide' );

                    //hide all footers
                    $( '.message-footer' ).addClass( 'hide' );
                    //now show the alternative footer
                    $( '.message-footer-style2' ).removeClass( 'hide' );


                    //move .message-content next to .message-list and hide .message-list
                    message_list.addClass( 'hide' ).after( $( '.message-content' ) ).next().removeClass( 'hide' );

                    //add scrollbars to .message-body
                    $( '.message-content .message-body' ).slimScroll( {
                        height: 200,
                        railVisible: true
                    } );

                }, 500 + parseInt( Math.random() * 500 ) );
            } );


            //display second message right inside the message list
            $( '.message-list .message-item:eq(1) .text' ).on( 'click', function () {
                var message = $( this ).closest( '.message-item' );

                //if message is open, then close it
                if ( message.hasClass( 'message-inline-open' ) ) {
                    message.removeClass( 'message-inline-open' ).find( '.message-content' ).remove();
                    return;
                }

                $( '.message-container' ).append( '<div class="message-loading-overlay"><i class="icon-spin icon-spinner orange2 bigger-160"></i></div>' );
                setTimeout( function () {
                    $( '.message-container' ).find( '.message-loading-overlay' ).remove();
                    message
                        .addClass( 'message-inline-open' )
                        .append( '<div class="message-content" />' )
                    var content = message.find( '.message-content:last' ).html( $( '#id-message-content' ).html() );

                    content.find( '.message-body' ).slimScroll( {
                        height: 200,
                        railVisible: true
                    } );

                }, 500 + parseInt( Math.random() * 500 ) );

            } );



            //back to message list
            $( '.btn-back-message-list' ).on( 'click', function ( e ) {
                e.preventDefault();
                Inbox.show_list();
                $( '#inbox-tabs a[data-target="inbox"]' ).tab( 'show' );
            } );



            //hide message list and display new message form
            /**
            $('.btn-new-mail').on('click', function(e){
                e.preventDefault();
                Inbox.show_form();
            });
            */




            var Inbox = {
                //displays a toolbar according to the number of selected messages
                display_bar: function ( count ) {
                    if ( count == 0 ) {
                        $( '#id-toggle-all' ).removeAttr( 'checked' );
                        $( '#id-message-list-navbar .message-toolbar' ).addClass( 'hide' );
                        $( '#id-message-list-navbar .message-infobar' ).removeClass( 'hide' );
                    }
                    else {
                        $( '#id-message-list-navbar .message-infobar' ).addClass( 'hide' );
                        $( '#id-message-list-navbar .message-toolbar' ).removeClass( 'hide' );
                    }
                }
                ,
                select_all: function () {
                    var count = 0;
                    $( '.message-item input[type=checkbox]' ).each( function () {
                        this.checked = true;
                        $( this ).closest( '.message-item' ).addClass( 'selected' );
                        count++;
                    } );

                    $( '#id-toggle-all' ).get( 0 ).checked = true;

                    Inbox.display_bar( count );
                }
                ,
                select_none: function () {
                    $( '.message-item input[type=checkbox]' ).removeAttr( 'checked' ).closest( '.message-item' ).removeClass( 'selected' );
                    $( '#id-toggle-all' ).get( 0 ).checked = false;

                    Inbox.display_bar( 0 );
                }
                ,
                select_read: function () {
                    $( '.message-unread input[type=checkbox]' ).removeAttr( 'checked' ).closest( '.message-item' ).removeClass( 'selected' );

                    var count = 0;
                    $( '.message-item:not(.message-unread) input[type=checkbox]' ).each( function () {
                        this.checked = true;
                        $( this ).closest( '.message-item' ).addClass( 'selected' );
                        count++;
                    } );
                    Inbox.display_bar( count );
                }
                ,
                select_unread: function () {
                    $( '.message-item:not(.message-unread) input[type=checkbox]' ).removeAttr( 'checked' ).closest( '.message-item' ).removeClass( 'selected' );

                    var count = 0;
                    $( '.message-unread input[type=checkbox]' ).each( function () {
                        this.checked = true;
                        $( this ).closest( '.message-item' ).addClass( 'selected' );
                        count++;
                    } );

                    Inbox.display_bar( count );
                }
            }

            //show message list (back from writing mail or reading a message)
            Inbox.show_list = function () {
                $( '.message-navbar' ).addClass( 'hide' );
                $( '#id-message-list-navbar' ).removeClass( 'hide' );

                $( '.message-footer' ).addClass( 'hide' );
                $( '.message-footer:not(.message-footer-style2)' ).removeClass( 'hide' );

                $( '.message-list' ).removeClass( 'hide' ).next().addClass( 'hide' );
                //hide the message item / new message window and go back to list
            }

            //show write mail form
            Inbox.show_form = function () {
                if ( $( '.message-form' ).is( ':visible' ) ) return;
                if ( !form_initialized ) {
                    initialize_form();
                }


                var message = $( '.message-list' );
                $( '.message-container' ).append( '<div class="message-loading-overlay"><i class="icon-spin icon-spinner orange2 bigger-160"></i></div>' );

                setTimeout( function () {
                    message.next().addClass( 'hide' );

                    $( '.message-container' ).find( '.message-loading-overlay' ).remove();

                    $( '.message-list' ).addClass( 'hide' );
                    $( '.message-footer' ).addClass( 'hide' );
                    $( '.message-form' ).removeClass( 'hide' ).insertAfter( '.message-list' );

                    $( '.message-navbar' ).addClass( 'hide' );
                    $( '#id-message-new-navbar' ).removeClass( 'hide' );


                    //reset form??
                    $( '.message-form .wysiwyg-editor' ).empty();

                    $( '.message-form .ace-file-input' ).closest( '.file-input-container:not(:first-child)' ).remove();
                    $( '.message-form input[type=file]' ).ace_file_input( 'reset_input' );

                    $( '.message-form' ).get( 0 ).reset();

                }, 300 + parseInt( Math.random() * 300 ) );
            }




            var form_initialized = false;
            function initialize_form() {
                if ( form_initialized ) return;
                form_initialized = true;

                //intialize wysiwyg editor
                $( '.message-form .wysiwyg-editor' ).ace_wysiwyg( {
                    toolbar:
                    [
                        'bold',
                        'italic',
                        'strikethrough',
                        'underline',
                        null,
                        'justifyleft',
                        'justifycenter',
                        'justifyright',
                        null,
                        'createLink',
                        'unlink',
                        null,
                        'undo',
                        'redo'
                    ]
                } ).prev().addClass( 'wysiwyg-style1' );

                //file input
                $( '.message-form input[type=file]' ).ace_file_input()
                //and the wrap it inside .span7 for better display, perhaps
                .closest( '.ace-file-input' ).addClass( 'width-90 inline' ).wrap( '<div class="row file-input-container"><div class="col-sm-7"></div></div>' );

                //the button to add a new file input
                $( '#id-add-attachment' ).on( 'click', function () {
                    var file = $( '<input type="file" name="attachment[]" />' ).appendTo( '#form-attachments' );
                    file.ace_file_input();
                    file.closest( '.ace-file-input' ).addClass( 'width-90 inline' ).wrap( '<div class="row file-input-container"><div class="col-sm-7"></div></div>' )
                    .parent(/*.span7*/ ).append( '<div class="action-buttons pull-right col-xs-1">\
							<a href="#" data-action="delete" class="middle">\
								<i class="icon-trash red bigger-130 middle"></i>\
							</a>\
						</div>').find( 'a[data-action=delete]' ).on( 'click', function ( e ) {
						    //the button that removes the newly inserted file input
						    e.preventDefault();
						    $( this ).closest( '.row' ).hide( 300, function () {
						        $( this ).remove();
						    } );
						} );
                } );
            }//initialize_form


            //turn the recipient field into a tag input field!
            /**	
            var tag_input = $('#form-field-recipient');
            if(! ( /msie\s*(8|7|6)/.test(navigator.userAgent.toLowerCase())) ) 
                tag_input.tag({placeholder:tag_input.attr('placeholder')});
        
        
            //and add form reset functionality
            $('.message-form button[type=reset]').on('click', function(){
                $('.message-form .message-body').empty();
                
                $('.message-form .ace-file-input:not(:first-child)').remove();
                $('.message-form input[type=file]').ace_file_input('reset_input');
                
                
                var val = tag_input.data('value');
                tag_input.parent().find('.tag').remove();
                $(val.split(',')).each(function(k,v){
                    tag_input.before('<span class="tag">'+v+'<button class="close" type="button">&times;</button></span>');
                });
            });
            */

        } );
    </script>
}